package com.wander.business.book.c1_3_1;

import com.wander.business.book.c1_3_1.config.BookConfig_c1_3_1;
import com.wander.business.book.c1_3_1.service.UseFunctionService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Wander.Zeng
 * @create 2017-07-30 22:00
 * @desc BookMain
 */
public class BookMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BookConfig_c1_3_1.class);
        UseFunctionService useFunctionService = context.getBean(UseFunctionService.class);
        System.out.println(useFunctionService.sayHello("wander"));
        context.close();
    }

}
